package cn.pet_know.service;

import cn.pet_know.entity.Knowledge;
import cn.pet_know.entity.dto.KnowledgeDTO;
import cn.pet_know.entity.vo.KnowledgeVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author haotchen
 * @date  2023-12-15
 * ===============  > 
 * 知识内容
 * 服务接口
 */
public interface KnowledgeService  extends IService<Knowledge> {

    Boolean add(KnowledgeDTO knowledgeDTO);

    List<KnowledgeVO> listKnowledge(KnowledgeDTO knowledgeDTO);

    Boolean del(KnowledgeDTO knowledgeDTO);

    Page<KnowledgeVO> queryPage(KnowledgeDTO knowledgeDTO);

    Boolean review(KnowledgeDTO knowledgeDTO);

    Boolean knowUpdate(KnowledgeDTO knowledgeDTO);
}
